//
//  PeripheryViewController.m
//  ZhiShanUI
//
//  Created by 1 1 on 15/11/26.
//  Copyright © 2015年 Hiccup. All rights reserved.
//

#import "PeripheryViewController.h"
#import "linjiaxiaowuViewController.h"
#import "shequbianminViewController.h"
#import "ShequhudongViewController.h"
#import "jiaoyupeixunViewController.h"
#import "xiuxianyuleViewController.h"
#import "canyinViewController.h"
#import "shequgongyiViewController.h"
#import "shengxianViewController.h"
#import "sousuoViewController.h"

@interface PeripheryViewController ()

@end

@implementation PeripheryViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.

    
    [self.navigationController setToolbarHidden:YES animated:TRUE];
    
  
    UIButton *button=[[UIButton alloc]init];
    button.frame=CGRectMake(0, 0, 375, 64);
    button.backgroundColor=[UIColor colorWithRed: 230/255.0 green:55/255.0 blue:55/255.0 alpha:1.0];
    [self.view addSubview:button];
    
    

    

    

    
    UIButton *button1=[UIButton buttonWithType:UIButtonTypeCustom];
    //[[UIButton alloc ] initWithFrame:CGRectMake(80, 30, 243, 25)];
    button1.frame=CGRectMake(66, 30, 243, 25);
    [button1 setImage:[UIImage imageNamed:@"search_bg@2x.png"]  forState:UIControlStateNormal];
    [button1 addTarget:self action:@selector(sousuo) forControlEvents:UIControlEventTouchUpInside];
    
    
    [self.view addSubview:button1];
    
}

-(void) sousuo{
    sousuoViewController *demoVC=[[sousuoViewController alloc]init];
    [demoVC setHidesBottomBarWhenPushed:YES];
    demoVC.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
    [self presentViewController:demoVC animated:YES completion:NULL];


}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)xiaoqufuwu:(id)sender {
    
    linjiaxiaowuViewController *demoVC=[[linjiaxiaowuViewController alloc]init];
    [demoVC setHidesBottomBarWhenPushed:YES];
    demoVC.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
    [self presentViewController:demoVC animated:YES completion:NULL];
    
    
    
}
- (IBAction)shequbianmin:(id)sender {
    
    
    
    shequbianminViewController *demoVC=[[shequbianminViewController alloc]init];
    [demoVC setHidesBottomBarWhenPushed:YES];
    demoVC.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
    [self presentViewController:demoVC animated:YES completion:NULL];
    
}
- (IBAction)jiaoyupeixun:(id)sender {
    
    
    shequbianminViewController *demoVC=[[shequbianminViewController alloc]init];
    [demoVC setHidesBottomBarWhenPushed:YES];
    demoVC.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
    [self presentViewController:demoVC animated:YES completion:NULL];
    
    
    
    
}
- (IBAction)canyin:(id)sender {
    
    
    
    jiaoyupeixunViewController *demoVC=[[jiaoyupeixunViewController alloc]init];
    [demoVC setHidesBottomBarWhenPushed:YES];
    demoVC.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
    [self presentViewController:demoVC animated:YES completion:NULL];
    
}
- (IBAction)shengxianpeisong:(id)sender {
    
    
    
    shengxianViewController *demoVC=[[shengxianViewController alloc]init];
    [demoVC setHidesBottomBarWhenPushed:YES];
    demoVC.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
    [self presentViewController:demoVC animated:YES completion:NULL];
    
}
- (IBAction)xiuxianyule:(id)sender {
    
    
    
    xiuxianyuleViewController *demoVC=[[xiuxianyuleViewController alloc]init];
    [demoVC setHidesBottomBarWhenPushed:YES];
    demoVC.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
    [self presentViewController:demoVC animated:YES completion:NULL];
    
}
- (IBAction)shehuigongyi:(id)sender {
    
    
    
    shequgongyiViewController *demoVC=[[shequgongyiViewController alloc]init];
    [demoVC setHidesBottomBarWhenPushed:YES];
    demoVC.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
    [self presentViewController:demoVC animated:YES completion:NULL];
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
